package api

import (
	"context"
	"fmt"
	"gitee.com/llakcs/aglie-layout/api/pb"
)

type UserServer struct {
	pb.UnimplementedUserInfoServiceServer
}

func (s *UserServer) GetUserInfo(ctx context.Context, req *pb.UserRequest) (*pb.UserResponse, error) {
	fmt.Println("###GetUserInfo-----!")
	strs := make([]string, 0)
	strs = append(strs, "hello")
	strs = append(strs, "world")
	return &pb.UserResponse{
		Id:    1,
		Name:  "lee",
		Age:   25,
		Title: strs,
	}, nil
}
